<?php /* Smarty version 2.6.16, created on 2012-05-07 00:00:21
         compiled from member_game.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'member_game.tpl', 170, false),array('modifier', 'count', 'member_game.tpl', 208, false),array('modifier', 'inarray', 'member_game.tpl', 211, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "top.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo '
<script type="text/javascript" src="../js/jquery-1.4.4.min.js"></script>

<link rel="stylesheet" href="../style/autosuggest.css" type="text/css" />
<script type="text/javascript" src="../js/jquery.ausu-autosuggest.min.js"></script>
<script language="javascript" type="text/javascript">
 j().ready(function() {  
		
		 $.fn.autosugguest({  
				   className: \'ausu-suggest\',
				  methodType: \'POST\',
					minChars: 2,
					  rtnIDs: true,
					dataFile: \'autocomplete.php?action=populateCity\'
			});  
   });  
function getPageId(type,id,rid,sid)
{	
	
	j.ajax({
			type:\'POST\',
			url:\'get_game_ladder.php\',
			data: \'type=\'+type+\'&id=\'+id+\'&rid=\'+rid+\'&sid=\'+sid,
			dataType:\'json\',
			success:function(jData){
			
				if(jData.flag == 1)
				{
					j(\'#ladder_id_td\').html(jData.html);
					j(\'#race_id_td\').html(jData.html1);
					j(\'#server_id_td\').html(jData.html2);
				}
			},
			error: function(XMLHttpRequest, textStatus, errorThrown){
				j(".contactus-block").html("Some server error occoured. Please report to system administrator.</div>");
			}
		});
}

function getChangeGame(id)
{	
	//alert(id);
	j(\'#ladder\').hide();
	j(\'#race\').hide();
	j(\'#region\').hide();
	j(\'#server\').hide();
	j(\'#rating\').hide();
	j(\'#ladder_gap\').hide();
	j(\'#race_gap\').hide();
	j(\'#region_gap\').hide();
	j(\'#server_gap\').hide();
	j(\'#rating_gap\').hide();
	j.ajax({
			url:\'game_details.php\',
			data: \'id=\'+id,
			type:\'post\',		
			dataType:\'json\',	
		   success:function(resp){
		   //alert(resp.server);
		   if(resp.ladder==\'Y\')
		   {
		   		j(\'#ladder\').show();
				j(\'#ladder_gap\').show();
			}			
			 if(resp.race==\'Y\')
			 {
		   		/*j(\'#race\').css(\'display\',\'block\');
				j(\'#race\').html(resp.race_str);*/
				j(\'#race\').show();
				j(\'#race_gap\').show();
			}	
			 if(resp.region==\'Y\')
		   	{
				j(\'#region\').show();				
				j(\'#region_gap\').show();
			}	
			 if(resp.server==\'Y\')
		   	{
				j(\'#server\').show();
				j(\'#server_gap\').show();
			}	
			 if(resp.rating==\'Y\')
		   	{
				j(\'#rating\').show();
				j(\'#rating_gap\').show();
			}
				}
		});
}
function showLocal()
{
     if(document.getElementById(\'avail_L\').checked == true)
	  {  
		j(\'#avail_city\').show();
		j(\'#avail_country\').show();	
	 }
	if(document.getElementById(\'avail_L\').checked == false)
	 {  	
	   j(\'#avail_city\').hide();
	   j(\'#avail_country\').hide();	
	 }		
}

function limitText(limitField, limitCount, limitNum) {
	if (limitField.value.length > limitNum) {
		limitField.value = limitField.value.substring(0, limitNum);
	} else {
		limitCount.value = limitNum - limitField.value.length;
	}
}

</script>
'; ?>


<h2>Add Game</h2>
<div class="tabarea">
<div class="tabcontent">
<p align="right" class="fields">Fields marked with <span class="red">*</span> are required</p>
<form action="member_game.php?action=trans" method="post" name="frm_admin" id="frm_admin" >
<input type="hidden" name="u_id" value="<?php echo $this->_tpl_vars['u_id']; ?>
" />
<input type="hidden" name="user_type" value="<?php echo $this->_tpl_vars['user_type']; ?>
">
		<table width="100%" border="0" cellspacing="4" cellpadding="0">
		  <?php if ($this->_tpl_vars['err_msgs'] != ""): ?>     
			<tr>
				<td class="simpleText" colspan="2"><ul><?php echo $this->_tpl_vars['err_msgs']; ?>
</ul></td>
			</tr>
			<tr>
				<td align="left" valign="top">&nbsp;</td>
				<td align="left" valign="top">&nbsp;</td>
			 </tr>
		  <?php endif; ?>
		  <?php if ($this->_tpl_vars['user_type'] == '1'): ?>
		      <tr>
				<td width="30%" align="left" valign="middle" class="plaintxt">Paypal Email ID<span class="red">*</span>:</td>
				<td width="70%" valign="middle" align="left"><label>
				<input type="text" name="paypal_email_id" id="paypal_email_id"  class="textbox">
				</label></td>
			 </tr>
		  <?php endif; ?>	
		  <?php if (( $this->_tpl_vars['is_coach'] == '1' && $this->_tpl_vars['is_partner'] == '0' ) || ( $this->_tpl_vars['is_coach'] == '0' && $this->_tpl_vars['is_partner'] == '1' )): ?>
		    <tr>
				<td width="20%" align="left" valign="top" class="plaintxt">Availability<span class="red">*</span>:</td>
				<td width="80%" align="left" valign="middle" class="plaintxt">
				Local&nbsp;&nbsp;
				<input name="availability_type1" type="checkbox" value="L" id="avail_L" <?php if ($this->_tpl_vars['FabricArr']['availability_type'] == 'L'): ?>checked=checked<?php endif; ?> onclick="showLocal()"/>
				Online&nbsp;&nbsp;<input name="availability_type2" type="checkbox" value="O" <?php if ($this->_tpl_vars['FabricArr']['availability_type'] == 'O'): ?>checked=checked<?php endif; ?>/>
				</td>
			  </tr>
			  <tr>
			 
				<td align="left" valign="top">&nbsp;</td>
				<td align="left" valign="top">&nbsp;</td>
			 </tr>
			 <tr id="avail_city"  <?php if ($this->_tpl_vars['FabricArr']['availability_type'] == 'L'): ?> <?php else: ?> style='display:none' <?php endif; ?>>
				<td width="20%" align="left" valign="top" class="plaintxt">City (Local meet-up)<span class="red">*</span>:</td>
				<td width="80%" align="left" valign="middle"><label><div class="ausu-suggest">
				<input type="text" name="acity_name" id="acity_name" class="textbox" value="<?php echo $this->_tpl_vars['FabricArr']['acity_name']; ?>
" autocomplete="off"  />
				<input name="availability_city" id="availability_city" type="hidden"  value="<?php echo $this->_tpl_vars['FabricArr']['availability_city']; ?>
" autocomplete="off" />
				</div>
				</label></td>
			 </tr>
			  
		   <?php endif; ?>	 
		 <tr>
			<td width="30%" align="left" valign="middle" class="plaintxt">Game<span class="red">*</span>:</td>
			<td width="70%" align="left" valign="middle"><label>
			 <select name="game_id" id="game_id" class="selectbox" onchange="getChangeGame(this.value)">
				<option value="">Select</option>				
				<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['GameArr'],'selected' => $this->_tpl_vars['FabricArr']['game_id']), $this);?>

			</select>
			</label></td>
		 </tr>
		 <?php if ($this->_tpl_vars['user_type'] == '1'): ?>
		 <tr>
			<td width="20%" valign="top" align="left" class="plaintxt">Rate<span class="red">*</span> ($):</td>
			<td width="80%" valign="middle" align="left"><label>
			<input type="text" onkeypress="return floatnumbersonly(this,event)" value="<?php echo $this->_tpl_vars['FabricArr']['rate']; ?>
" class="textbox" id="rate" name="rate">
			</label></td>
		 </tr>
		<?php endif; ?> 
		 <?php if ($this->_tpl_vars['user_type'] == '3'): ?>
		 <tr>
			<td width="20%" valign="top" align="left" class="plaintxt">Peak Hours :</td>
			<td width="80%" valign="middle" align="left"><label>
			<input type="text" value="<?php echo $this->_tpl_vars['FabricArr']['peak_hours']; ?>
" class="textbox" id="peak_hours" name="peak_hours">
			</label></td>
		 </tr>
		 <?php endif; ?> 
		 <?php if ($this->_tpl_vars['FabricArr']['is_ladder'] == 'Y'): ?>
		   <tr id="ladder_gap">
			<td align="left" valign="top">&nbsp;</td>
			<td align="left" valign="top">&nbsp;</td>
		  </tr>
		  <?php endif; ?>
		 <tr id="ladder" <?php if ($this->_tpl_vars['FabricArr']['is_ladder'] != 'Y'): ?> style='display:none' <?php endif; ?>>
			<td height="28" align="left" class="plaintxt">Ladder:</td>
			<td height="28" align="left" class="maintext" id="ladder_id_td">
				<select name="ladder_id" id="ladder_id">
					<option value="">Select</option>
					<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['LadderArr'],'selected' => $this->_tpl_vars['FabricArr']['ladder_id']), $this);?>

				</select>
			</td>
		 </tr>
		<!-- <tr id="ladder" <?php if ($this->_tpl_vars['FabricArr']['is_ladder'] != 'Y'): ?> style='display:none' <?php endif; ?>>
			<td align="left" valign="top" class="plaintxt">Ladder<span class="red">*</span>:</td>	
			<td width="70%" align="left" valign="middle" class="plaintxt">
			<?php if (count($this->_tpl_vars['LadderArr']) != 0): ?>
		 	<?php unset($this->_sections['RowLadder']);
$this->_sections['RowLadder']['name'] = 'RowLadder';
$this->_sections['RowLadder']['loop'] = is_array($_loop=$this->_tpl_vars['LadderArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['RowLadder']['show'] = true;
$this->_sections['RowLadder']['max'] = $this->_sections['RowLadder']['loop'];
$this->_sections['RowLadder']['step'] = 1;
$this->_sections['RowLadder']['start'] = $this->_sections['RowLadder']['step'] > 0 ? 0 : $this->_sections['RowLadder']['loop']-1;
if ($this->_sections['RowLadder']['show']) {
    $this->_sections['RowLadder']['total'] = $this->_sections['RowLadder']['loop'];
    if ($this->_sections['RowLadder']['total'] == 0)
        $this->_sections['RowLadder']['show'] = false;
} else
    $this->_sections['RowLadder']['total'] = 0;
if ($this->_sections['RowLadder']['show']):

            for ($this->_sections['RowLadder']['index'] = $this->_sections['RowLadder']['start'], $this->_sections['RowLadder']['iteration'] = 1;
                 $this->_sections['RowLadder']['iteration'] <= $this->_sections['RowLadder']['total'];
                 $this->_sections['RowLadder']['index'] += $this->_sections['RowLadder']['step'], $this->_sections['RowLadder']['iteration']++):
$this->_sections['RowLadder']['rownum'] = $this->_sections['RowLadder']['iteration'];
$this->_sections['RowLadder']['index_prev'] = $this->_sections['RowLadder']['index'] - $this->_sections['RowLadder']['step'];
$this->_sections['RowLadder']['index_next'] = $this->_sections['RowLadder']['index'] + $this->_sections['RowLadder']['step'];
$this->_sections['RowLadder']['first']      = ($this->_sections['RowLadder']['iteration'] == 1);
$this->_sections['RowLadder']['last']       = ($this->_sections['RowLadder']['iteration'] == $this->_sections['RowLadder']['total']);
?>
			<input type="checkbox" name="submited_ladder[]"  value="<?php echo $this->_tpl_vars['LadderArr'][$this->_sections['RowLadder']['index']]['ladder_id']; ?>
" 
<?php if (((is_array($_tmp=$this->_tpl_vars['LadderArr'][$this->_sections['RowLadder']['index']]['ladder_id'])) ? $this->_run_mod_handler('inarray', true, $_tmp, $this->_tpl_vars['submited_ladder']) : in_array($_tmp, $this->_tpl_vars['submited_ladder']))): ?>checked<?php endif; ?> /> 
			<?php echo $this->_tpl_vars['LadderArr'][$this->_sections['RowLadder']['index']]['ladder_name']; ?>
		
			<br />
			<?php endfor; endif; ?>
			<?php endif; ?>
			</td>	
		</tr>-->
		
		  <tr id="race_gap" <?php if ($this->_tpl_vars['FabricArr']['is_race'] != 'Y'): ?> style='display:none' <?php endif; ?>>
			<td align="left" valign="top">&nbsp;</td>
			<td align="left" valign="top">&nbsp;</td>
		  </tr>

		<!-- <tr>
			<td height="28" align="left" class="plaintxt">Race<span class="red">*</span>:</td>
			<td height="28" align="left" class="maintext" id="race_id_td">
				<select name="race_id" id="race_id">
					<option value="">Select</option>
				</select>
			</td>
		 </tr>-->
		  <tr id="race"   <?php if ($this->_tpl_vars['FabricArr']['is_race'] != 'Y'): ?> style='display:none' <?php endif; ?>>
			<td align="left" valign="top" class="plaintxt">Race:</td>	
			<td width="70%" align="left" valign="middle" class="plaintxt">
			<?php if (count($this->_tpl_vars['RaceArr']) != 0): ?>
		 	<?php unset($this->_sections['RowRace']);
$this->_sections['RowRace']['name'] = 'RowRace';
$this->_sections['RowRace']['loop'] = is_array($_loop=$this->_tpl_vars['RaceArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['RowRace']['show'] = true;
$this->_sections['RowRace']['max'] = $this->_sections['RowRace']['loop'];
$this->_sections['RowRace']['step'] = 1;
$this->_sections['RowRace']['start'] = $this->_sections['RowRace']['step'] > 0 ? 0 : $this->_sections['RowRace']['loop']-1;
if ($this->_sections['RowRace']['show']) {
    $this->_sections['RowRace']['total'] = $this->_sections['RowRace']['loop'];
    if ($this->_sections['RowRace']['total'] == 0)
        $this->_sections['RowRace']['show'] = false;
} else
    $this->_sections['RowRace']['total'] = 0;
if ($this->_sections['RowRace']['show']):

            for ($this->_sections['RowRace']['index'] = $this->_sections['RowRace']['start'], $this->_sections['RowRace']['iteration'] = 1;
                 $this->_sections['RowRace']['iteration'] <= $this->_sections['RowRace']['total'];
                 $this->_sections['RowRace']['index'] += $this->_sections['RowRace']['step'], $this->_sections['RowRace']['iteration']++):
$this->_sections['RowRace']['rownum'] = $this->_sections['RowRace']['iteration'];
$this->_sections['RowRace']['index_prev'] = $this->_sections['RowRace']['index'] - $this->_sections['RowRace']['step'];
$this->_sections['RowRace']['index_next'] = $this->_sections['RowRace']['index'] + $this->_sections['RowRace']['step'];
$this->_sections['RowRace']['first']      = ($this->_sections['RowRace']['iteration'] == 1);
$this->_sections['RowRace']['last']       = ($this->_sections['RowRace']['iteration'] == $this->_sections['RowRace']['total']);
?>
			<input type="checkbox" name="submited_race[]"  value="<?php echo $this->_tpl_vars['RaceArr'][$this->_sections['RowRace']['index']]['race_id']; ?>
" 
<?php if (((is_array($_tmp=$this->_tpl_vars['RaceArr'][$this->_sections['RowRace']['index']]['race_id'])) ? $this->_run_mod_handler('inarray', true, $_tmp, $this->_tpl_vars['submited_race']) : in_array($_tmp, $this->_tpl_vars['submited_race']))): ?>checked<?php endif; ?> /> 
			<?php echo $this->_tpl_vars['RaceArr'][$this->_sections['RowRace']['index']]['race_title']; ?>
		
			<br />
			<?php endfor; endif; ?>
			<?php endif; ?>
			</td>	
		</tr>
		  <tr id="rating_gap" <?php if ($this->_tpl_vars['FabricArr']['is_rating'] != 'Y'): ?> style='display:none' <?php endif; ?>>
			<td align="left" valign="top">&nbsp;</td>
			<td align="left" valign="top">&nbsp;</td>
		  </tr>
		 
		 <!--<tr>
			<td height="28" align="left" class="plaintxt">Server<span class="red">*</span>:</td>
			<td height="28" align="left" class="maintext" id="server_id_td">
				<select name="server_id" id="server_id">
					<option value="">Select</option>
				</select>
			</td>
		 </tr>-->
		  <tr id="rating" <?php if ($this->_tpl_vars['FabricArr']['is_rating'] != 'Y'): ?> style='display:none' <?php endif; ?>>
			<td align="left" valign="top" class="plaintxt">Rating:</td>	
			<td width="70%" align="left" valign="middle" class="plaintxt">
			<?php if (count($this->_tpl_vars['RatingArr']) != 0): ?>
		 	<?php unset($this->_sections['RowRating']);
$this->_sections['RowRating']['name'] = 'RowRating';
$this->_sections['RowRating']['loop'] = is_array($_loop=$this->_tpl_vars['RatingArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['RowRating']['show'] = true;
$this->_sections['RowRating']['max'] = $this->_sections['RowRating']['loop'];
$this->_sections['RowRating']['step'] = 1;
$this->_sections['RowRating']['start'] = $this->_sections['RowRating']['step'] > 0 ? 0 : $this->_sections['RowRating']['loop']-1;
if ($this->_sections['RowRating']['show']) {
    $this->_sections['RowRating']['total'] = $this->_sections['RowRating']['loop'];
    if ($this->_sections['RowRating']['total'] == 0)
        $this->_sections['RowRating']['show'] = false;
} else
    $this->_sections['RowRating']['total'] = 0;
if ($this->_sections['RowRating']['show']):

            for ($this->_sections['RowRating']['index'] = $this->_sections['RowRating']['start'], $this->_sections['RowRating']['iteration'] = 1;
                 $this->_sections['RowRating']['iteration'] <= $this->_sections['RowRating']['total'];
                 $this->_sections['RowRating']['index'] += $this->_sections['RowRating']['step'], $this->_sections['RowRating']['iteration']++):
$this->_sections['RowRating']['rownum'] = $this->_sections['RowRating']['iteration'];
$this->_sections['RowRating']['index_prev'] = $this->_sections['RowRating']['index'] - $this->_sections['RowRating']['step'];
$this->_sections['RowRating']['index_next'] = $this->_sections['RowRating']['index'] + $this->_sections['RowRating']['step'];
$this->_sections['RowRating']['first']      = ($this->_sections['RowRating']['iteration'] == 1);
$this->_sections['RowRating']['last']       = ($this->_sections['RowRating']['iteration'] == $this->_sections['RowRating']['total']);
?>
			<input type="checkbox" name="submited_rating[]"  value="<?php echo $this->_tpl_vars['RatingArr'][$this->_sections['RowRating']['index']]['rating_id']; ?>
" 
<?php if (((is_array($_tmp=$this->_tpl_vars['RatingArr'][$this->_sections['RowRating']['index']]['rating_id'])) ? $this->_run_mod_handler('inarray', true, $_tmp, $this->_tpl_vars['submited_rating']) : in_array($_tmp, $this->_tpl_vars['submited_rating']))): ?>checked<?php endif; ?> /> 
			<?php echo $this->_tpl_vars['RatingArr'][$this->_sections['RowRating']['index']]['rating_title']; ?>
		
			<br />
			<?php endfor; endif; ?>
			<?php endif; ?>
			</td>	
		</tr>
		
		  <tr id="region_gap" <?php if ($this->_tpl_vars['FabricArr']['is_region'] != 'Y'): ?> style='display:none' <?php endif; ?>>
			<td align="left" valign="top">&nbsp;</td>
			<td align="left" valign="top">&nbsp;</td>
		  </tr>
		 
		 <tr id="region" <?php if ($this->_tpl_vars['FabricArr']['is_region'] != 'Y'): ?> style='display:none' <?php endif; ?>>
			<td align="left" valign="top" class="plaintxt">Region:</td>	
			<td width="70%" align="left" valign="middle" class="plaintxt">
			<?php if (count($this->_tpl_vars['RegionArr']) != 0): ?>
		 	<?php unset($this->_sections['RowRegion']);
$this->_sections['RowRegion']['name'] = 'RowRegion';
$this->_sections['RowRegion']['loop'] = is_array($_loop=$this->_tpl_vars['RegionArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['RowRegion']['show'] = true;
$this->_sections['RowRegion']['max'] = $this->_sections['RowRegion']['loop'];
$this->_sections['RowRegion']['step'] = 1;
$this->_sections['RowRegion']['start'] = $this->_sections['RowRegion']['step'] > 0 ? 0 : $this->_sections['RowRegion']['loop']-1;
if ($this->_sections['RowRegion']['show']) {
    $this->_sections['RowRegion']['total'] = $this->_sections['RowRegion']['loop'];
    if ($this->_sections['RowRegion']['total'] == 0)
        $this->_sections['RowRegion']['show'] = false;
} else
    $this->_sections['RowRegion']['total'] = 0;
if ($this->_sections['RowRegion']['show']):

            for ($this->_sections['RowRegion']['index'] = $this->_sections['RowRegion']['start'], $this->_sections['RowRegion']['iteration'] = 1;
                 $this->_sections['RowRegion']['iteration'] <= $this->_sections['RowRegion']['total'];
                 $this->_sections['RowRegion']['index'] += $this->_sections['RowRegion']['step'], $this->_sections['RowRegion']['iteration']++):
$this->_sections['RowRegion']['rownum'] = $this->_sections['RowRegion']['iteration'];
$this->_sections['RowRegion']['index_prev'] = $this->_sections['RowRegion']['index'] - $this->_sections['RowRegion']['step'];
$this->_sections['RowRegion']['index_next'] = $this->_sections['RowRegion']['index'] + $this->_sections['RowRegion']['step'];
$this->_sections['RowRegion']['first']      = ($this->_sections['RowRegion']['iteration'] == 1);
$this->_sections['RowRegion']['last']       = ($this->_sections['RowRegion']['iteration'] == $this->_sections['RowRegion']['total']);
?>
			<input type="checkbox" name="submited_region[]"  value="<?php echo $this->_tpl_vars['RegionArr'][$this->_sections['RowRegion']['index']]['region_id']; ?>
" 
<?php if (((is_array($_tmp=$this->_tpl_vars['RegionArr'][$this->_sections['RowRegion']['index']]['region_id'])) ? $this->_run_mod_handler('inarray', true, $_tmp, $this->_tpl_vars['submited_region']) : in_array($_tmp, $this->_tpl_vars['submited_region']))): ?>checked<?php endif; ?> /> 
			<?php echo $this->_tpl_vars['RegionArr'][$this->_sections['RowRegion']['index']]['region_title']; ?>
		
			<br />
			<?php endfor; endif; ?>
			<?php endif; ?>
			</td>	
		</tr>
		
		  <tr id="server_gap" <?php if ($this->_tpl_vars['FabricArr']['is_server'] != 'Y'): ?> style='display:none' <?php endif; ?>>
			<td align="left" valign="top">&nbsp;</td>
			<td align="left" valign="top">&nbsp;</td>
		  </tr>
	
		 <tr id="server" <?php if ($this->_tpl_vars['FabricArr']['is_server'] != 'Y'): ?> style='display:none' <?php endif; ?>>
			<td align="left" valign="top" class="plaintxt">Server:</td>	
			<td width="70%" align="left" valign="middle" class="plaintxt">
			<?php if (count($this->_tpl_vars['ServerArr']) != 0): ?>
		 	<?php unset($this->_sections['RowServer']);
$this->_sections['RowServer']['name'] = 'RowServer';
$this->_sections['RowServer']['loop'] = is_array($_loop=$this->_tpl_vars['ServerArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['RowServer']['show'] = true;
$this->_sections['RowServer']['max'] = $this->_sections['RowServer']['loop'];
$this->_sections['RowServer']['step'] = 1;
$this->_sections['RowServer']['start'] = $this->_sections['RowServer']['step'] > 0 ? 0 : $this->_sections['RowServer']['loop']-1;
if ($this->_sections['RowServer']['show']) {
    $this->_sections['RowServer']['total'] = $this->_sections['RowServer']['loop'];
    if ($this->_sections['RowServer']['total'] == 0)
        $this->_sections['RowServer']['show'] = false;
} else
    $this->_sections['RowServer']['total'] = 0;
if ($this->_sections['RowServer']['show']):

            for ($this->_sections['RowServer']['index'] = $this->_sections['RowServer']['start'], $this->_sections['RowServer']['iteration'] = 1;
                 $this->_sections['RowServer']['iteration'] <= $this->_sections['RowServer']['total'];
                 $this->_sections['RowServer']['index'] += $this->_sections['RowServer']['step'], $this->_sections['RowServer']['iteration']++):
$this->_sections['RowServer']['rownum'] = $this->_sections['RowServer']['iteration'];
$this->_sections['RowServer']['index_prev'] = $this->_sections['RowServer']['index'] - $this->_sections['RowServer']['step'];
$this->_sections['RowServer']['index_next'] = $this->_sections['RowServer']['index'] + $this->_sections['RowServer']['step'];
$this->_sections['RowServer']['first']      = ($this->_sections['RowServer']['iteration'] == 1);
$this->_sections['RowServer']['last']       = ($this->_sections['RowServer']['iteration'] == $this->_sections['RowServer']['total']);
?>
			<input type="checkbox" name="submited_server[]"  value="<?php echo $this->_tpl_vars['ServerArr'][$this->_sections['RowServer']['index']]['server_id']; ?>
" 
<?php if (((is_array($_tmp=$this->_tpl_vars['ServerArr'][$this->_sections['RowServer']['index']]['server_id'])) ? $this->_run_mod_handler('inarray', true, $_tmp, $this->_tpl_vars['submited_server']) : in_array($_tmp, $this->_tpl_vars['submited_server']))): ?>checked<?php endif; ?> /> 
			<?php echo $this->_tpl_vars['ServerArr'][$this->_sections['RowServer']['index']]['server_name']; ?>
		
			<br />
			<?php endfor; endif; ?>
			<?php endif; ?>
			</td>	
		</tr>
		   <tr>
			<td align="left" valign="top">&nbsp;</td>
			<td align="left" valign="top">&nbsp;</td>
		  </tr>
		 <!--tr>
			<td width="20%" align="left" valign="top" class="plaintxt">Experience:</td>
			<td width="80%" align="left" valign="middle"><label>
			<input type="text" name="experience" id="experience" class="textbox" value="<?php echo $this->_tpl_vars['FabricArr']['experience']; ?>
"/>
			</label></td>
	     </tr-->

          <tr>
			<td align="left" valign="top" class="plaintxt">Experience:</td>
			<td align="left" valign="top"><label>
			  <textarea rows="3" cols="23"  name="experience" id="experience" class="bigger" style="height:110px;"><?php echo $this->_tpl_vars['FabricArr']['experience']; ?>
</textarea>
			</label></td>
		  </tr>
		  <tr>
		  	<td colspan="2"></td>
          </tr>
		  <?php if ($this->_tpl_vars['user_type'] == '1'): ?>
		  <tr>
			<td width="20%" valign="top" align="left" class="plaintxt">Lesson Plan:</td>
			<td width="80%" valign="middle" align="left"><label>
			<textarea rows="3" cols="23"  name="lesson_plan" id="lesson_plan" class="bigger" style="height:110px;"><?php echo $this->_tpl_vars['FabricArr']['lesson_plan']; ?>
</textarea>
			</label></td>
		  </tr>
		 <?php endif; ?> 
	 	 <?php if ($this->_tpl_vars['user_type'] == '3'): ?>
		  <tr>
			<td width="20%" valign="top" align="left" class="plaintxt">Need Improvement In:</td>
			<td width="80%" valign="middle" align="left"><label>
			<textarea rows="3" cols="23"  name="need_improvement" id="need_improvement" class="bigger" style="height:110px;"><?php echo $this->_tpl_vars['FabricArr']['need_improvement']; ?>
</textarea>
			</label></td>
		  </tr>
		 <?php endif; ?>
		 <?php if (( $this->_tpl_vars['is_coach'] == '1' && $this->_tpl_vars['is_partner'] == '0' ) || ( $this->_tpl_vars['is_coach'] == '0' && $this->_tpl_vars['is_partner'] == '1' )): ?>
		  <tr>
			<td align="left" valign="top" class="plaintxt">About User:</td>
			<td align="left" valign="top" class="plaintxt"><label>
			<textarea rows="3" cols="23"  name="description" id="description"  onKeyDown="limitText(this.form.description,this.form.countdown,300);"
			onKeyUp="limitText(this.form.description,this.form.countdown,300);" class="bigger" style="height:110px;"><?php echo $this->_tpl_vars['FabricArr']['description']; ?>
</textarea>
			</label>
			</td>
		
			 </tr>
			 <tr>
					<td align="left" valign="top" class="plaintxt">&nbsp;</td>
					<td align="left" valign="top" class="plaintxt"><label> 
					Characters left <input readonly type="text" name="countdown" size="3" value="300" class="tiny">
					</label></td>
			</tr>	
		 <?php endif; ?>		   
		  <tr>
			<td height="28" align="left" class="plaintxt">Active:</td>
			<td height="28" align="left" class="maintext">
				<input name="is_active" id="is_active" type="checkbox" class="maintext" value="Y" <?php if ($this->_tpl_vars['FabricArr']['is_active'] == 'Y'): ?>checked<?php endif; ?>>
			</td>
		  </tr>
		 
		  <tr>
			<td align="left" valign="top">&nbsp;</td>
			<td align="left" valign="top">&nbsp;</td>
		  </tr>
		  <tr>
			<td align="left" valign="top">&nbsp;</td>
			<td align="left" valign="top">
			 <input name="user_game_id" id="user_game_id" type="hidden" value="<?php echo $this->_tpl_vars['user_game_id']; ?>
"/>
			 <input name="u_id" id="u_id" type="hidden" value="<?php echo $this->_tpl_vars['u_id']; ?>
"/>
			 <input name="imageField" type="submit" class="addsadmin" value="Submit" style="width:120px;"/></td>
		  </tr>
		  <tr>
		  <td>&nbsp;</td>
		  <td>&nbsp;</td>
		  </tr>
		</table>
</form>

	</div>
 </div>
    <p>&nbsp;</p>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "bottom.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>